<?php
class Servicemanager_Data_Updateservicesettings implements Servicemanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE service_settings SET service_name = '".$variables['post']['service_name']."', subcategory_name = '".$variables['post']['subcategory_name']."', status_name = '".$variables['post']['status_name']."', access_level = '".$variables['post']['access_level']."' WHERE service_name='".$variables['post']['old_service_name']."';";
        return $this->core_controller_dataoperation->main($variables);
    }
}
